type: Mesh
name: logging
logging:
  defaultBackend: file
  backends:
    - name: logstash
      format: '{"start_time": "%START_TIME%", "source": "%KUMA_SOURCE_SERVICE%", "destination": "%KUMA_DESTINATION_SERVICE%", "source_address": "%KUMA_SOURCE_ADDRESS_WITHOUT_PORT%", "destination_address": "%UPSTREAM_HOST%", "duration_millis": "%DURATION%", "bytes_received": "%BYTES_RECEIVED%", "bytes_sent": "%BYTES_SENT%"}'
      type: tcp
      conf:
        address: 127.0.0.1:5000
    - name: file
      type: file
      conf:
        path: /tmp/access.log
